
#ifndef EMPLOYEEAO_MOCK_H
#define EMPLOYEEAO_MOCK_H

#include <stdint.h>
#include <string>
#include "app_platform/cntl_info.h"

#include "erp/employee/po/employeepo_employee.h"	
#include "erp/employee/po/employeefilterpo_employee.h"	
#include <set>	
#include <map>	
#include "intf_employeeao.h"


namespace erp
{
namespace employee
{
namespace ao
{

	class CEmployeeAoMock : public IEmployeeAo{
	public:
	    virtual uint32_t AddEmployee(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				const erp::employee::po::CEmployeePo& employee,
				const std::string& inReserve,
				std::string& errmsg,
				erp::employee::po::CEmployeePo& employeeBack,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			employeeBack = m_employeeBack;
			outReserve = m_outReserve;
			return 0;
	    }		
	    virtual uint32_t GetEmployeeById(
				const CCntlInfo& rCntlInfo,

				const std::string& machineKey,
				const std::string& source,
				uint32_t sceneId,
				const erp::employee::po::CEmployeeFilterPo& employeeFilter,
				const std::string& inReserve,
				std::string& errmsg,
				std::map<uint32_t,erp::employee::po::CEmployeePo >& employees,
				std::string& outReserve
	    	)
	    {
			errmsg = m_errmsg;
			employees = m_employees;
			outReserve = m_outReserve;
			return 0;
	    }		
	
   public:
			std::string m_errmsg;
			erp::employee::po::EmployeePo m_employeeBack;
			std::string m_outReserve;
			std::map<uint32_t,erp::employee::po::EmployeePo > m_employees;
	};
	
}
}
}

#endif /* EMPLOYEEAO_MOCK_H */

